<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions">
	<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
	<xsl:template match="/">
		<html>
			<head>
				<title>Roster</title>
			</head>
			<body>
				<xsl:element name="armylist">
					<div class="armyClass">
						<table width="100%" border="0" cellpadding="0" cellspacing="0">
							<tbody>
								<tr>
									<td width="50%"><xsl:value-of select="armylist/@army"/></td>
									<td width="50%">Total: <xsl:value-of select="armylist/@total"/></td>
								</tr>
							</tbody>
						</table>
						<hr/>
					</div>
					<xsl:for-each select="armylist/slot">
						<div class="slotClass">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tbody>
									<tr>
										<td width="50%"><xsl:value-of select="./@type"/></td>
										<td width="50%">Total: <xsl:value-of select="./@total"/></td>
									</tr>
								</tbody>
							</table>
							<hr/>
						</div>
						
					</xsl:for-each>
				</xsl:element>
			</body>
		</html>
	</xsl:template>
</xsl:stylesheet>
